Skip to content

fix: remove unnecessary f-string prefix in vulnrichment.py#2073

Open
samay2504 wants to merge 1 commit intoaboutcode-org:mainfrom
samay2504:fix/fstring-no-placeholder-vulnrichment-20251219163922
Open

fix: remove unnecessary f-string prefix in vulnrichment.py#2073
samay2504 wants to merge 1 commit intoaboutcode-org:mainfrom
samay2504:fix/fstring-no-placeholder-vulnrichment-20251219163922

Conversation

@samay2504
Copy link

fixes #2072

Proposed Fix

Remove the f prefix since no interpolation is needed:

for file_path in base_path.glob("**/**/*.json"):

Detection Method

Found using ruff check . --select=F541 which reported f-strings without placeholders in the codebase.

Signed-off-by: samay2504 <samay.m2504@gmail.com>
# See https://aboutcode.org for more information about nexB OSS projects.
#

import ast
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you sure a test like this is needed? This feel vastly overkill.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alright @pombredanne I'll remove the test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix: Remove unnecessary f-string prefix in vulnrichment.py

2 participants

Comments